package cz.apnetis.gwt.client;

import com.google.gwt.user.client.ui.Widget;

public interface TableModelEditable extends TableModel {

  /** Method which set value to filed of object which is represent by
   * @param row row which represent object
   * @param colName name of column whcih is shown
   * @param widget widget which hold changed value
   */
  void setFieldValue(int row, String colName, Widget widget);

  /** Save row to server */
  void saveRow(int row);
  /** Remove row from model - and from server */
  void removeRow(int row);
  /** Method which add new item to model and return index of added element
   * @return index of added item
   */
  int addRow();

}
